package cate.game.event.herocall;

import cate.game.activity.specall.SpeCallActivity;
import cate.game.event.GameEventListener;
import cate.game.role.Role;

import static cate.common.table.d.GDHeroCall.Mode.ADVANCE;
import static cate.common.table.d.GDHeroCall.Mode.FRIEND;
import static cate.common.table.d.GDHeroCall.Mode.RESTRICT_CALL;

public class HeroCallEventListener implements GameEventListener<HeroCallEvent> {

    @Override
    public void onEvent(HeroCallEvent gameEvent) {
        Role role = gameEvent.getRole();
        switch (gameEvent.getCallMode()) {
            case ADVANCE:
            case FRIEND:
            case RESTRICT_CALL:
                break;
            default:
                break;
        }
        role.getActivity().getEnableList(SpeCallActivity.class).forEach(a->a.addNums(gameEvent.getHeroList()));
    }
}
